<nav class="navbar navbar-fixed-top navbar-default navbar-yckit" role="navigation">
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed"
				data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
				<span class="sr-only">站名</span> 
				<span class="icon-bar"></span> 
				<span class="icon-bar"></span> 
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="portal.action?index"> 
				<span class="navbar-red"></span>
				<span class="navbar-yellow"></span> 
				<span class="navbar-green"></span>
			</a>
		</div>

		<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
			<ul class="nav navbar-nav">
				<#if categories??>
					<#list categories as ctg>
						<li id="nav-${ctg.id}">
							<a href="article.action?loadArticlesByCtg&ctgId=${ctg.id}">
								<i class="fa fa-fw ${ctg.remark}"></i>&nbsp;${ctg.name}
							</a>
						</li>
					</#list>
				</#if>
				
<!-- 				<li id="nav-2"> -->
<!-- 					<a href="portal.action?skip&url=kfsj"> -->
<!-- 						<i class="fa fa-fw fa-bell-o"></i>&nbsp;开发实践 -->
<!-- 					</a> -->
<!-- 				</li> -->
				<#if member??>
						<li class="dropdown">
						    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
						    	<i class="fa fa-fw fa-coffee"></i>&nbsp;
					            <strong style="color:#F07575">
						        ${(member.nickName)!}
						    	</strong>
							    <span class="caret" style="color:#F07575"></span>
							</a>
						    <ul class="dropdown-menu dropdown-menu-right" role="menu">
						        <li>
								    <a href="member.action?toEditMember"> <i class="fa fa-edit fa-fw"></i>
								          修改信息
								    </a>
								</li>
								<li>
								    <a href="portal.action?skip&url=postArticle"> <i class="fa fa-image fa-fw"></i>
								          发表帖子     
								    </a>
								</li>
								<li>
								    <a href="article.action?myArticles"> <i class="fa fa-image fa-fw"></i>
								          我的帖子     
								    </a>
								</li>
								<li>
								    <a href="commentInfo.action?myComments"> <i class="fa fa-comment-o fa-fw"></i>
								         我的评论
								    </a>
								</li>
								<li>
								    <a href="member.action?logout"> <i class="fa fa-power-off fa-fw"></i>
								         退出登录
								    </a>
								</li>
						    </ul>
						</li>
					<#else>
						<li id="nav-3"><a href="portal.action?skip&url=login"><i class="fa fa-fw fa-folder-o"></i>&nbsp;登录</a></li>
						<li id="nav-4"><a href="portal.action?skip&url=register"><i class="fa fa-fw fa-cutlery"></i>&nbsp;注册</a></li>
					</#if>
			</ul>

		</div>
	</div>
</nav>